#include <libbase/Time.h>
#include <iostream>

using namespace BASE;

int main(){
	time_t now = Time::getNow();
	std::cout << now << std::endl;
	time_t micro = Time::getMicroTime();
	std::cout << micro << std::endl;
	std::string timeStr = Time::toString(now);
	std::cout << "timestr " << timeStr << std::endl;
	time_t now1 = Time::fromString(timeStr);
	std::cout << "now1 " << now1 << std::endl;

	std::cout << Time::getDateText() << std::endl;
	std::cout << Time::checkDay(1437530400, time(NULL)) << std::endl;
	return 0;
}
